﻿using System;

namespace AdaptiveAgents.Games
{
    /// <summary>
    /// Represents a game whose next player is decided by the active player
    /// </summary>
    class NormalGame : Game
    {
        /// <summary>
        /// constructor
        /// </summary>
        /// <param name="env">the environment</param>
        /// <param name="numOfRounds">number of rounds in the game</param>
        public NormalGame(Environment env, int numOfRounds)
            : base(env, numOfRounds)
        { }

        /// <summary>
        /// Decides which player is the next player
        /// </summary>
        /// <param name="activePlayer"></param>
        /// <returns>ID of the next player according to active player decision</returns>
        protected override int chooseNextPerformer(int activePlayer)
        {
            return _environment.agents[activePlayer].chooseNextPerformer();
        }
    }
}
